package com.codebattery.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@Component
@FeignClient(decode404 = true, value = "order-service", fallback = OrderServiceClientFallback.class)
public interface OrderServiceClient {

//    @GetMapping("/order/order/get/{id}")
//    String getOrder(@PathVariable(value = "id") Long id);

    @GetMapping("/order/get-all-orders")
    List<Object> getAll();
}
